<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title><g:layoutTitle default="Grails"/></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="${resource(dir: 'images', file: 'iconUT.ico')}" type="image/x-icon">
		<link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
		<link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'bootstrap.css')}" type="text/css">
		<g:layoutHead/>
		<g:javascript library="application"/>		
		<r:layoutResources />
	</head>
	<body>
	<div class="span1"></div>
	
	<div class="span10">
	<div class="container">
		<div id="grailsLogo" class="row">
		
		<div class="col-md-6">
		<a href="http://localhost:8080/Talk/"><img src="${resource(dir: 'images', file: 'logo3.png')}" width="100" height="28" alt="Grails"/></a>
		</div>
		
		<div class="col-md-2">
		<a id="userpseudo"><talk:pseudo user="${user}"/></a>
		</div>
		
		<!--  Recherche des autres utilisateurs si l'utilisateur est connecté -->
		<g:if test="${user != null}">
				
			<div class="col-md-2">
					<g:form controller="administrator" action="searchUser" role="form">
						<div class="input-group input-group-sm">
			  				<input name="pseudo_search" type="text" placeholder="Pseudo">
							<div class="btn-group">
							  <button type="submit" class="btn btn-default">Search</button>
							</div>
						</div>
					</g:form>
			</div>
			
			<div class="col-md-2">
				<g:link controller="administrator" action="disconnect"><span class="badge">Disconnect</span></g:link>
			</div>
		</g:if>
		
		</div>
		
		<div id="layoutbody">
		<g:layoutBody />
		</div>
		
		<div class="footer"></div>
		<div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Loading&hellip;"/></div>
		<r:layoutResources />
	</div>	
	</div>	
	
	<div class="span1"></div>
	</body>
</html>
